package zt.song.shopping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_orders
 */
@TableName(value ="t_orders")
@Data
public class Orders implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    /**
     * 订单号
     */
    @TableField(value = "ordernum")
    private String ordernum;

    /**
     * 订单时间
     */
    @TableField(value = "ordertime")
    private Date ordertime;

    /**
     * 订单金额
     */
    @TableField(value = "totalprice")
    private BigDecimal totalprice;

    /**
     * 订单状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Integer userid;

    /**
     * 逻辑删除
     */
    @TableField(value = "isDel")
    private Integer isdel;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}